#!/usr/bin/perl
$\=$/;
use lib '../mods';
use db_config;

$fconfig='config.sh';

open F,">$fconfig" or die "Can't open '$fconfig' : $!";
print F <<"CONF";
PGPASS="$ENV{HOME}/.pgpass"

DB_HOST='$db_host'
DB_PORT='$db_port'
DB_NAME='$db_name'
DB_USER='$db_login'
DB_PASS='$db_pass'
CONF

close F;
